import { createRouter, createWebHashHistory } from 'vue-router'

import Login from '../views/Login.vue'

// 创建一个路由对象，并且包含子路由
const listRoutes = {
    
}

// 定义路由映射
const routes = [
    listRoutes,
    {path: '/login', component: Login},
]



// 创建路由实例并导出
export const router = createRouter({
    history: createWebHashHistory(),
    routes,
})



export default router